import unittest
from HTMLTestRunner import HTMLTestRunner

tests = unittest.defaultTestLoader.discover(r"D:\pycharmProject\pythonDuiXiang\自动化", "Test.py")
# 执行测试
runner = HTMLTestRunner.HTMLTestRunner(
    title="计算器测试报告",
    description="这是加减乘除测试报告",
    verbosity=1,
    stream=open(file="hello.html", mode="w+", encoding="utf-8")

)
runner.run(tests)
